package com.qianyu.entity.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.qianyu.entity.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

/**
 * 群红包明细
 *
 * @TableName tb_qun_redtail
 */
@Data
@ApiModel(value = "群红包明细")
@TableName("tb_qun_redtail")
@AllArgsConstructor
@NoArgsConstructor
public class QunRedtail extends BaseBean {

    /**
     * 群id
     */
    @NotNull(message = "[群id]不能为空")
    @ApiModelProperty("群id")
    private Long qunId;
    /**
     * 账号
     */
    @NotBlank(message = "[账号]不能为空")
    @Size(max = 15, message = "编码长度不能超过15")
    @ApiModelProperty("账号")
    private String qq;
    /**
     * 类型:0=发红包,1=领红包
     */
    @NotNull(message = "[类型:0=发红包,1=领红包]不能为空")
    @ApiModelProperty("类型:0=发红包,1=领红包")
    private Integer type;
    /**
     * 金额
     */
    @NotNull(message = "[金额]不能为空")
    @ApiModelProperty("金额")
    private BigDecimal money;
}
